package tech.yunjing.train.common;

/**
 * 系统所需要的常量
 * Created by zlc on 2017/6/8
 */
public interface Constants {


    /**
     * 抢红包记录逻辑删除
     */
    String DEL_LOGIC_NORMAL = "0";   //正常
    String DEL_LOGIC_DELETE = "1";   //删除
    /**
     * 抢红包记录查询状态
     */
    String FIND_STATE_NORMAL = "0";  //未查找
    String FIND_STATE_ALREADY = "1"; //已查找
    /**
     * 小红包状态
     */
    Integer SMALL_RED_PACKET_NORMAL = 0; //未抢
    Integer SMALL_RED_PACKET_ALREADY = 1;//已抢
    Integer SMALL_RED_PACKET_DELETE = 2; //删除

    /**
     * 验证码状态
     */
    int VERIFICATION_CODE_NORMAL = 0;  //未使用
    int VERIFICATION_CODE_DELETE = 1;  //已使用

    /**
     * 逻辑删除
     */
    int DEL_USERLOGIC_NORMAL = 0;   //正常
    int DEL_USERLOGIC_DELETE = 1;   //删除

    /**
     * 用户登录状态
     */
    int USER_INFO_LOGIN = 2; //已登录




    /**
     * 正常
     */
    int RESPONSE_CODE_200 = 200;
    /**
     * 参数错误
     */
    int RESPONSE_CODE_400 = 400;

    int RESPONSE_CODE_404 = 404;

    int RESPONSE_CODE_405 = 405;

    int RESPONSE_CODE_401 = 401;

    int RESPONSE_CODE_403 = 403;
    /**
     * 服务器未知错误
     */
    int RESPONSE_CODE_500 = 500;

    String RESPONSE_MESSAGE_200 = "success";

    String RESPONSE_MESSAGE_400 = "parameter error";

    String RESPONSE_MESSAGE_404 = "resource not found";

    String RESPONSE_MESSAGE_405 = "No resource method found for POST";

    String RESPONSE_MESSAGE_401 = "params error";

    String RESPONSE_MESSAGE_500 = "server error";


}
